import request from "@/utils/http"
/**
 * 文件上传
 **/
export const fileUpload = (data = {}) => {
    return request({
        url: '/upload',
        method: 'post',
        data
    })
}



export const uploadBase64 = (base64, fileType = 'png') => {
    return request({
        url: '/uploadBase64Body',
        method: 'post',
        data: { base64: base64, fileType }
    })
}
